﻿using System.Globalization;

namespace InterfaceWeaver.CustomTool
{
    public static class StringExtensions
    {
        /// <summary>
        /// Formats string into camel case.
        /// </summary>
        /// <param name="textExpression">The text expression.</param>
        /// <returns></returns>
        public static string ToCamelCase(this string textExpression)
        {
            return textExpression[0].ToString(CultureInfo.InvariantCulture).ToLower() + textExpression.Substring(1);
        }
    }
}
